package Super;

public class TestSuper {
    public  static void main(String[] args){
        Dog dogbo = new Dog();
        dogbo.eat();
        dogbo.eatTest();
    }
}
class Animal{
    void  eat(){
        System.out.println("Animal : eat");
    }

}
class Dog extends Animal{
    void eat(){
        System.out.println("Dog : eat ");
    }
    void  eatTest(){
        this.eat();//访问自己的方法 都是对类而言
        super.eat();//访问父类的方法
    }
}

